<%@ page language="java" contentType="text/html;charset=UTF-8"%>
<%@ taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
<%@ taglib prefix="h" uri="http://java.sun.com/jsf/html"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
    <head>
    <title>WebPizza - Modificar una Mesa</title>
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
    </head>
    <style type="text/css">
    	body {font-family: Verdana; font-size: 10pt;}
    </style>
    <f:view>
        <body> 
        <h:graphicImage value="/images/Pizza-75.png"/> 
        <h:graphicImage value="/images/webpizza.png"/> 
        <h:graphicImage value="/images/Pizza-75.png"/>
        <br />
        <h:outputText value="#{errors}"/>
                
        <h2>A&ntilde;adir una Mesa</h2>
        <br />
        <h:outputText value="Ingrese los siguientes datos:"/>
        <h:form id="loginForm">
        <h:panelGrid columns="3" width="50%">
        	<h:panelGroup><h:outputText value="Numero de sillas:"/>	
        	</h:panelGroup>
        	<h:panelGroup><h:inputText id="chairs" value="#{ModifyMesa.chairs}" required="true">
		    	<f:validateLength minimum="1" maximum="2"/></h:inputText>	   
        	</h:panelGroup>
        	<h:panelGroup><h:message for="chairs"/>
        	</h:panelGroup>
        	<h:panelGroup>Ubicaci&oacute;n
        	</h:panelGroup>
        	<h:panelGroup><h:inputText id="location" value="#{ModifyMesa.location}" required="true">
		    	<f:validateLength minimum="1" maximum="30"/></h:inputText>	   
        	</h:panelGroup>
        	<h:panelGroup><h:message for="location"/>
        	</h:panelGroup>
        	<h:panelGroup><h:commandButton id="Actualizar" value="Agregar" action="#{ModifyMesa.add}"/>
        	</h:panelGroup>        	
        </h:panelGrid>          
        </h:form>
        </body>        
    </f:view>
</html>